﻿<%@ Page Title="New Order" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="NewOrder.aspx.cs" Inherits="IFD2.NewOrder" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <!--仅Datepicker-->
    <%--<link href="jquery_ui/jquery-ui.min.css" rel="stylesheet" type="text/css" />--%>
    <link href="Datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>

    <form id="form1" runat="server" role="form" class="form-inline">
    <%--<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>--%>
    <div class="container-fluid body-content" style="width:100%;">

    <div class="row">
        <div class="col-sm-2 well well-sm">
            <h5><asp:Literal ID="litTitle" runat="server" meta:resourcekey="tipPageTitle"></asp:Literal></h5>
        </div>

        <div class="col-sm-10 well well-sm">
            <div class="panel">
                <div class="panel-heading btn-primary">
                    <h6 class="panel-title" id="section-2"><asp:Literal ID="Literal1" runat="server" meta:resourcekey="tipPageTitle"></asp:Literal></h6>
                </div>
                <div class="panel-body">
                    <table style="text-align:center; margin:auto;">
                    <tr><td colspan="3"><hr /></td></tr>
                    <tr>
                        <td colspan="2" style="text-align:left;">
                            &bull; <asp:Label ID="Label1" runat="server" Text="Segments:" meta:resourcekey="TripCount" Font-Bold="true"></asp:Label>
                        </td>
                        <td>
                            <asp:RadioButtonList ID="radSegCount" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" onselectedindexchanged="radSegCount_SelectedIndexChanged">
                                <asp:ListItem>1&nbsp;&nbsp;</asp:ListItem>
                                <asp:ListItem Selected="True">2&nbsp;&nbsp;</asp:ListItem>
                                <asp:ListItem>3&nbsp;&nbsp;</asp:ListItem>
                                <asp:ListItem>4&nbsp;&nbsp;</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    <tr>
                        <td colspan="3" style="text-align:left;">&bull; <asp:Label ID="Label9" runat="server" Text="Trip:" meta:resourcekey="TripPlan" Font-Bold="true"></asp:Label></td>
                    </tr>
                    <tr>
                        <td><asp:Label ID="Label2" runat="server" Text="From" meta:resourcekey="From"></asp:Label></td>
                        <td><asp:Label ID="Label10" runat="server" Text="To" meta:resourcekey="To"></asp:Label></td>
                        <td><asp:Label ID="Label3" runat="server" Text="Departure Date" meta:resourcekey="DepartureDate"></asp:Label></td>
                    </tr>
                        <tr>
                        <td><asp:TextBox ID="txtOri1" runat="server" Width="40px" MaxLength="10"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtDes1" runat="server" Width="40px" MaxLength="10"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtFltDate1" CssClass="form_date" runat="server"  Width="92px" MaxLength="15"></asp:TextBox></td> 
                    </tr>

                    <tr>
                        <td><asp:TextBox ID="txtOri2" runat="server" Width="40px" MaxLength="10"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtDes2" runat="server" Width="40px" MaxLength="10"></asp:TextBox></td>
                        <td> <asp:TextBox ID="txtFltDate2" CssClass="form_date" runat="server"  Width="92px" MaxLength="15"></asp:TextBox></td>
                    </tr>

                    <tr>
                        <td><asp:TextBox ID="txtOri3" runat="server" Width="40px" Visible="False" MaxLength="10"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtDes3" runat="server" Width="40px" Visible="False" MaxLength="10"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtFltDate3" CssClass="form_date" runat="server"  Visible="False" Width="92px" MaxLength="15"></asp:TextBox></td>
                    </tr>

                    <tr>
                        <td><asp:TextBox ID="txtOri4" runat="server" Width="40px" Visible="False" MaxLength="10"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtDes4" runat="server" Width="40px" Visible="False" MaxLength="10"></asp:TextBox></td>
                        <td> <asp:TextBox ID="txtFltDate4" CssClass="form_date" runat="server" Visible="False" Width="92px" MaxLength="15"></asp:TextBox></td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    <tr>
                        <td colspan="3" style="text-align:left;">&bull; <asp:Label ID="Label4" runat="server" Text="Passengers:" meta:resourcekey="PaxCount" Font-Bold="true"></asp:Label></td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:Label ID="Label5" runat="server" Text="Adult(s):" meta:resourcekey="Adults" Font-Bold="False"></asp:Label>
                            <asp:TextBox ID="txtAdtCount" runat="server"  Width="32px" MaxLength="3">1</asp:TextBox>
                            &nbsp;<asp:Label ID="Label6" runat="server" Text="Child(ren):" meta:resourcekey="Children" Font-Bold="False"></asp:Label>
                            <asp:TextBox ID="txtChdCount" runat="server"  Width="32px" MaxLength="3">0</asp:TextBox>
                            &nbsp;<asp:Label ID="Label7" runat="server" Text="Infant(s):" meta:resourcekey="Infants" Font-Bold="False"></asp:Label>
                            <asp:TextBox ID="txtInfCount" runat="server"  Width="32px" MaxLength="3">0</asp:TextBox>
                        </td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    <tr>
                        <td colspan="2" style="text-align:left;"> 
                            &bull; <asp:Label ID="Label11" runat="server" Text="Request Type:" meta:resourcekey="RequestType" Font-Bold="true"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="lstRequestType" runat="server">
                                <asp:ListItem Selected="True" Value="C" meta:resourcekey="ConfirmRequest">Confirm Request</asp:ListItem>
                                <asp:ListItem Value="H" meta:resourcekey="StandbyRequest">Standby Request</asp:ListItem>
                                <asp:ListItem Value="B" meta:resourcekey="BlockRequest">Block Request</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <%--<tr>
                        <td colspan="2">&nbsp;</td>
                        <td><asp:CheckBox ID="chkIsGroup" runat="server" Text="Is Group_X" meta:resourcekey="IsGroup" Enabled="False" Visible="False"/></td>
                    </tr>--%>
                    <tr><td colspan="3"><hr /></td></tr>
                    <tr><td colspan="3">
                        <asp:Button ID="butFltQuery" runat="server" CssClass="btn btn-sm btn-primary" Text="FltQuery"  meta:resourcekey="FltQuery" onclick="butFltQuery_Click"/>&nbsp;
                        <asp:Button ID="btnFareQuery" runat="server" CssClass="btn btn-sm btn-primary" Text="FareQuery" meta:resourcekey="FareQuery" onclick="btnFareQuery_Click" />
                        </td></tr>
                    </table>
                    <asp:Label ID="lblError" runat="server" CssClass="ifdMessage"></asp:Label>
                    
                    </div>

                    <div id="targetDiv" style="position:absolute;border:solid 1px black; z-index:20000; background-color:White; display:none;">test</div>

                    <asp:Button ID="Button1" runat="server" PostBackUrl="~/flt_avail5.aspx" Text="Query (old)_X" Enabled="False" Visible="False" />
            </div>
        </div>
    </div>

    </div>
    <%--</ContentTemplate></asp:UpdatePanel>--%>
    </form>

    <%--<script src="jquery_ui/jquery-ui.min.js"></script>--%>
    <script src="Datetimepicker/js/bootstrap-datetimepicker.min.js"></script>

    <script src="JS/city_suggestion.min.js"></script>

    <script>
        $(document).ready(function () {
            //var win_width = parseInt($(window).width());//浏览器窗口可视区域宽度
            //if (win_width >= 768) {
            //    $("#MainContent_txtFltDate1").datepicker({
            //        dateFormat: "yy-mm-dd", numberOfMonths: 2, showButtonPanel: true
            //    });
            //    $("#MainContent_txtFltDate2").datepicker({
            //        dateFormat: "yy-mm-dd", numberOfMonths: 2, showButtonPanel: true
            //    });
            //    $("#MainContent_txtFltDate3").datepicker({
            //        dateFormat: "yy-mm-dd", numberOfMonths: 2, showButtonPanel: true
            //    });
            //    $("#MainContent_txtFltDate4").datepicker({
            //        dateFormat: "yy-mm-dd", numberOfMonths: 2, showButtonPanel: true
            //    });
            //}

            //$('.form_datetime').datetimepicker({
            //    format: 'yyyy-m-d hh:ii',
            //    weekStart: 1,
            //    todayBtn: 1,
            //    autoclose: 1,
            //    todayHighlight: 1,
            //    startView: 'month',
            //    forceParse: 0,
            //    showMeridian: 0
            //});
            $('.form_date').datetimepicker({
                format: 'yyyy-m-d',
                weekStart: 1,
                todayBtn: 1,
                autoclose: 1,
                todayHighlight: 1,
                startView: 'month',
                minView: 'month',
                forceParse: 0
            });
            //$('.form_time').datetimepicker({
            //    format: 'hh:ii' ,
            //    weekStart: 1,
            //    todayBtn:  1,
            //    autoclose: 1,
            //    todayHighlight: 1,
            //    startView: 'day',
            //    minView: 'hour',
            //    maxView: 'day',
            //    forceParse: 0
            //});
       });
  	</script>
    

</asp:Content>
